/* 全局样式 */
body, html {
    padding: 0;
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f5f7fa;
}

/* 顶部导航栏 */
.el-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    line-height: 60px;
    padding: 0 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.el-header .title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 侧边栏 */
.el-aside {
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.el-menu {
    border-right: none;
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%) !important;
}

.el-menu-item, .el-submenu__title {
    color: #fff !important;
    font-size: 16px;
    height: 50px;
    line-height: 50px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.el-menu-item:hover, .el-submenu__title:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

.el-menu-item.is-active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffd04b !important;
}

.el-submenu .el-menu-item {
    padding-left: 40px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px;
}

/* 主内容区域 */
.el-main {
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 180px);
}

/* 页脚 */
.el-footer {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    text-align: center;
    line-height: 60px;
    padding: 0 20px;
    border-radius: 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
}

.footer-links a {
    color: #ffd04b;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 下拉菜单 */
.el-dropdown-menu {
    background-color: #fff !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.el-dropdown-menu__item {
    color: #333 !important;
}

.el-dropdown-menu__item:hover {
    background-color: #f5f7fa !important;
}

/* 按钮 */
.el-button {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 8px 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.el-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.avatar-button {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    color: inherit;
    box-shadow: none !important;
    outline: none; /* 去除默认 focus 蓝框 */
}

.avatar-button:hover,
.avatar-button:focus,
.avatar-button:active {
    background: none;
    box-shadow: none;
    outline: none;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .el-header, .el-footer {
        border-radius: 0;
    }

    .el-aside {
        width: 100% !important;
        height: auto;
        margin-bottom: 20px;
    }

    .el-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .el-submenu {
        width: 48%;
    }
}

/* 添加动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.el-main {
    animation: fadeIn 0.5s ease-out;
}
/* 隐藏滚动条样式 */
.el-menu::-webkit-scrollbar {
    width: 0; /* 隐藏滚动条 */
}

/* 隐藏滚动条轨道 */
.el-menu::-webkit-scrollbar-track {
    background: transparent;
}

/* 隐藏滚动条滑块 */
.el-menu::-webkit-scrollbar-thumb {
    background: transparent;
}

/* 其他样式 */
.el-menu {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
/* 添加彩色边框 */
.el-header, .el-footer {
    border: 2px solid transparent;
    background-clip: padding-box;
}

.el-header {
    border-image: linear-gradient(135deg, #ff9a9e, #fad0c4, #a18cd1, #fad0c4) 1;
}

.el-footer {
    border-image: linear-gradient(135deg, #a18cd1, #ff9a9e, #fad0c4, #a18cd1) 1;
}

/* 添加彩色渐变背景 */
.el-submenu.is-active {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%) !important;
}

/* 添加彩色图标 */
.el-icon-arrow-down {
    color: #ffd04b !important;
}

